<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>显示3D模型</title>
	</head>
	<script src="./three.js"></script>
	<script src="./GLTFLoader.js"></script>
	<body>
		<script>
			// Instantiate a loader
			var loader = new THREE.GLTFLoader();
		
			// Optional: Provide a DRACOLoader instance to decode compressed mesh data
			// var dracoLoader = new THREE.DRACOLoader();
			// dracoLoader.setDecoderPath( './draco/' );
			// loader.setDRACOLoader( dracoLoader );
			
			// Load a glTF resource
			loader.load( './a.glb', function ( gltf ) {
			
				scene.add( gltf.scene );
			
			}, undefined, function ( error ) {
			
				console.error( error );
			
			} );
	
			
		
		</script>
	</body>
</html>
